package com.warren.util;

/**
 * @author warren
 * @data: 2022/3/28 3:00 PM
 * @decription:
 */
public abstract class BaseDateUtil {
    /**
     * 返回补零字符串
     * @param time
     * @return
     */
    public static String zeroCompensation(int time) {
        if (time < 10) {
            return "0" + time;
        }
        return String.valueOf(time);
    }
}
